﻿namespace CSharpPro._1020;

public class Student
{
        public string Name { get; set; }
        public int Age { get; set; }
        public string StudentId { get; set; }

        public Student(string name, int age, string studentId)
        {
            Name = name;
            Age = age;
            StudentId = studentId;
        }

        public override string ToString()
        {
            return $"姓名：{Name}，年龄：{Age}，学号：{StudentId}";
        }
    }

    
